Minimally invasive endoscopy-guided surgery